package com.github.slprj.slake.net;

/**
 * @author YangXiaoLong
 * 2022/10/27 15:55
 */
public class Peer {
    private final Object endPoint;
    private final NioNet owner;
    private volatile SlChannel slChannel;

    public Peer(Object endPoint, NioNet owner) {
        this.endPoint = endPoint;
        this.owner = owner;
    }

    public Object getEndPoint() {
        return endPoint;
    }

    public NioNet getOwner() {
        return owner;
    }

    public SlChannel getSlChannel() {
        return slChannel;
    }

    public void setSlChannel(SlChannel slChannel) {
        this.slChannel = slChannel;
    }

}
